package string;

public class StringAndStringBuilderDemo {
    public static void main(String[] args) {
       /* String str = "a";

        for (int i = 0; i < 1000000000; i++) {
            str += "a";
        }
        System.out.println("执行完毕");*/

        StringBuilder builder = new StringBuilder("a");

        for (int i = 0; i <1000000; i++) {
            builder.append("a");
        }
        System.out.println("执行完毕");
        System.out.println(builder);

        System.out.println("输出完毕");
    }
}
